<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<span class="df-integer">0<span>元</span></span>
		<script type="text/javascript">
			function money(){
				var spans=document.getElementsByClassName("df-integer");
				console.log(spans);
				timer=setInterval(()=>{
					for(var i=0;i<spans.length;i++){
						var mon=(parseInt(spans[i].innerHTML)+Math.random()*(999999+1)+1);
						if(mon>100000000){
							clearInterval(timer);
						}
						spans[i].innerHTML=mon.toFixed(2);	
					}					
				},50)
			}					
			money();		
		</script>
	</body>
</html>
